package com.csaba.connector.citi;

import com.csaba.connector.BankService;
import com.csaba.connector.ServiceException;
import com.csaba.connector.ServicePluginConfiguration;
import com.csaba.connector.model.Bank;
import com.csaba.connector.citi.model.CitiBank;

public class CitiPluginConfiguration implements ServicePluginConfiguration
{

	@Override
	public Bank getBank()
	{
		return CitiBank.getInstance();
	}

	@Override
	public String getServicePackage()
	{
		return getClass().getPackage().getName();
	}

	@Override
	public String getServicePrefix()
	{
		return "Citi";
	}

	@Override
	public BankService getBankService( final Class<?> serviceClass ) throws ServiceException
	{
		throw new ServiceException("Unsupported service (" + serviceClass.getName() + ") in bank "
				+ getBank().getName() + ".");
	}

}
